from django.db import models

# Create your models here.


class Book(models.Model):
    title = models.CharField('BookName', max_length=50, default='')
    price = models.DecimalField('Price', max_digits=7, decimal_places=2)
    info = models.CharField('Info', max_length=100, default='')

    class Meta:
        db_table = 'Book'


class Author(models.Model):
    name = models.CharField('Name', max_length=11)
    age = models.IntegerField('Age')
    email = models.EmailField('E-mail')

    class Meta:
        db_table = 'Author'
